package com.sky.service.impl;

import com.sky.dto.CategoryDTO;
import com.sky.entity.Category;
import com.sky.mapper.UserCategoryMapper;
import com.sky.service.UserCategoryService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Slf4j

public class UserCategoryServiceImpl implements UserCategoryService {
    @Autowired
    private UserCategoryMapper userCategoryMapper;
    @Override
    public List<Category> list(CategoryDTO dto) {
        return  userCategoryMapper.list(dto);

    }
}
